package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Product;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.math.BigDecimal;
import java.util.List;

public interface IProductService {
    void saveOrUpdate(Product product);
    void delete(Long id);
    Product getProductById(Long id);
    List<Product> getAll();


    PageInfo<Product> selectByQuery(QueryObject queryObject);

    BigDecimal selectPriceById(Long id);

}
